<?php
/* Error handling
 * TODO add to a modul
 */
error_reporting(E_ALL);
ini_set('display_errors','On');

session_start() ;


// Define some directory globals
define('DS', DIRECTORY_SEPARATOR) ;
define('ROOT', dirname(dirname(__FILE__))) ;
define('MY_BASE_URL', 'http://1dv408/') ;

// Include our config-file
require_once(ROOT.DS.'config'.DS.'config.php') ;


// Include the router so we serve the correct pages
require_once(ROOT.DS.'library'.DS.'core'.DS.'router.php') ;

// Include the base-controller
require_once(ROOT.DS.'library'.DS.'core'.DS.'controller.php') ;

// And the base-view
require_once(ROOT.DS.'library'.DS.'core'.DS.'view.php') ;

// Include the module-loadr
require_once(ROOT.DS.'library'.DS.'core'.DS.'loadModules.php') ;



$router = new Router() ;
$router->loadController() ;
